package com.jsmile.cloud.msgcenter.msg.listener;

import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.listener.adapter.MessageListenerAdapter;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class RedisListener extends MessageListenerAdapter {

    @Override
    public void onMessage(Message message, byte[] pattern) {
        log.info("接收到的redis订阅消息:{}", message);
    }
}
